package Bk.basic;

import java.util.Scanner;

public class Tax {

	public static void main(String[] args) {

		Scanner sc = null;
		int que =1|2;
		int ySal;
		
		sc = new Scanner(System.in);
		System.out.print("1.미혼/ 2.기혼 : ");
		que = sc.nextInt();
		System.out.print("연봉 : ");
		ySal = sc.nextInt();
		
		switch (que) {
			case 1: 
				if (ySal>=3000){System.out.println(ySal*0.25);}
			else System.out.println(ySal*0.10); break;
			default:
		} 
		switch (que) {
			case 2:
				if (ySal >=6000){System.out.println(ySal*0.35);}
			else System.out.println(ySal*0.15); break;
			default:
		} 
		
		
/*		
		if (que==1){
			if (ySal>=3000){System.out.println(ySal*0.25);}
			else System.out.println(ySal*0.10);
	          }
		else if (que==2){
			if (ySal >=6000) System.out.println(ySal*0.35);}
			else System.out.println(ySal*0.15);
		*/
		sc.close();
		
	}

}
